//
//  APIWorkOutRank.h
//  Bracelet
//
//  Created by jing zhao on 2/15/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "APIConnection.h"
#import "APIOneRank.h"

@interface APIWorkOutRank : NSObject

@property(strong, nonatomic)APIOneRank* myRank;
@property (strong, nonatomic)NSMutableArray *arrayAllRank;
@property (strong, nonatomic)APIPaper *paper;
@property (copy, nonatomic)NSString *totalRunner;


+(void)setApiRelativePosition:(NSString*)relativePostion
                    withPaper:(NSString*)paperNu
                   getTheTotalRank:(void (^)(APIWorkOutRank *outRank))successBlock
                      failure:(void (^)( NSError *error)) failureBlock;

+(void)setApiRelativePosition:(NSString*)relativePostion
                    withPaper:(NSString*)paperNu
              getTheWeekRank:(void (^)(APIWorkOutRank *outRank))successBlock
                      failure:(void (^)( NSError *error)) failureBlock;
@end
